using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Urban_Flash.Player.States
{
    public class Run : FSMState
    {
         public Run(Player StateController) 
             : base(StateController)
        {
            stateID = StateID.Run;
        }

        public override void DoBeforeEntering()
        {

        }

        public override void Execute()
        {
        }

        public override void DoBeforeLeaving()
        {

        }

        public override void PlayerInput(object sender, PlayerStateEventArgs e)
        {
            Player player = (Player)sender;
            if (e.action == Dependencies.ActionKey.RunLeft || e.action == Dependencies.ActionKey.RunRight)
                player.Move(e.action, e.timeStamp);
        }
    }
}
